#ifndef WIDGET_H
#define WIDGET_H

#include<QtSql>
#include<QtGui>
#include <QCoreApplication>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlTableModel>
#include <QSqlError>
#include <QDebug>

#include <QWidget>
#include"unitsearch.h"
#include"unitrollmake.h"
class unitrollmake;

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    unitrollmake *urm;
    Widget *wd;
    void showroll();


   // QStandardItemModel *model_3 = new QStandardItemModel();

private slots:
    void on_AddRoll_clicked();

    void on_Edit_clicked();

    void on_DeleteRoll_clicked();

    void on_RollInform_cellClicked(int row, int column);

    void on_unit_cellClicked(int row, int column);

    void on_Search_clicked();

    void showrollslot();



    void on_EditRoll_clicked();

    void on_CadreinRollNum_clicked();



    void on_shuchu_clicked();

signals:
    void sendrollid(QString);


private:
    Ui::Widget *ui;

};

#endif // WIDGET_H
